package BiblioDao;

import Biblio.metier.Employe;
import Biblio.metier.EnumCategorieEmploye;

public class EmployeDao {

 
        public Employe[] employeDao = {
               
                new Employe("Durand", "Remi", 1, "AB001",EnumCategorieEmploye.RESPONSABLE),
                new Employe("Denis", "Pierre", 2, "AC001",EnumCategorieEmploye.BIBLIOTHECAIRE)
                
                
        };

         public Employe findByKey(int id){
            
            for(Employe e  : employeDao) 
            {
                   if((e.getIdUtilisateur()==id))
                           return e;
            }
        // Exception utilisateur inconnu retourne exception             
                   return null;
              
           }       
}